function createAjax() {
	var xmlHttp;
	try {
		xmlHttp = new XMLHttpRequest();
	} catch (e) {
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				alert("Your browser does not support AJAX!");
				xmlHttp = false;
			}
		}
	}
	return xmlHttp; // 返回XMLHttp实例
}
var charset = document.charset || document.characterSet;
function onReadyStateChange() {
	if (this.readyState == 4) {
		if (this.status == 200) {
			alert(this.responseText);
		}
	}
}

function submitMarkData(action,target,value) {
	var url = "http://10.131.252.41:8080/edu.fudan.ss.wml.marker.test/Submit.jsp";
	var xmlHttp = createAjax();// /创建xmlHttpRequest组件
	xmlHttp.onreadystatechange = onReadyStateChange;// /设置回调函数,onreadystatechange是方法,状态发生改变时调用haolejiaowo方法
	xmlHttp.open("post", url, true);// /初始化xmlHttpRequest组件,GET提交,true表示请求是异步请求
	xmlHttp.setRequestHeader("Cache-Control", "no-cache");
	xmlHttp.setRequestHeader("Content-Type",
			"application/x-www-form-urlencoded;charset=utf-8");
	xmlHttp.send("test=hello,我是 Ajax&charset="+charset);// /发送请求
}